package com.zhy.http.okhttp.cookie;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import okhttp3.Cookie;
import okhttp3.CookieJar;
import okhttp3.HttpUrl;

public final class SimpleCookieJar
  implements CookieJar
{
  private final List<Cookie> allCookies = new ArrayList();

  public List<Cookie> loadForRequest(HttpUrl paramHttpUrl)
  {
    try
    {
      ArrayList localArrayList = new ArrayList();
      Iterator localIterator = this.allCookies.iterator();
      while (true)
      {
        boolean bool = localIterator.hasNext();
        if (!bool)
          return localArrayList;
        Cookie localCookie = (Cookie)localIterator.next();
        if (localCookie.matches(paramHttpUrl))
          localArrayList.add(localCookie);
      }
    }
    finally
    {
    }
  }

  public void saveFromResponse(HttpUrl paramHttpUrl, List<Cookie> paramList)
  {
    try
    {
      this.allCookies.addAll(paramList);
      return;
    }
    finally
    {
      localObject = finally;
      throw localObject;
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.zhy.http.okhttp.cookie.SimpleCookieJar
 * JD-Core Version:    0.6.2
 */